//
//  LSZAudioFrequencyTableViewCell.m
//  JKFuYinProject
//
//  Created by 九酷 on 2017/9/19.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LSZAudioFrequencyTableViewCell.h"

@implementation LSZAudioFrequencyTableViewCell
-(id)initWithNumberAudioFrequency:(NSInteger)numberDistinguish
{
    self = [super init];
    if (self) {
        self.labelNumber = [[UILabel alloc]initWithFrame:CGRectMake(0, 23,40, 16)];
        self.labelNumber.textAlignment = NSTextAlignmentCenter;
        self.labelNumber.textColor =  lightColor;
        self.labelNumber.font = FONT_16;
        [self addSubview:self.labelNumber];
//        numberDistinguish 1  是诗歌(讲道)和赞美诗进去的   0 是诗歌歌谱
        self.imageViewAudio = [[UIImageView alloc]init];
        [self addSubview:self.imageViewAudio];
        if (numberDistinguish == 1) {
            self.imageViewAudio.frame = CGRectMake(CGRectGetMaxX(self.labelNumber.frame), 7, 44, 45);
        }else{
            self.imageViewAudio.frame = CGRectMake(CGRectGetMaxX(self.labelNumber.frame), 7, 0, 0);
        }
        
        self.labelTitle = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.imageViewAudio.frame)+4, 12, WidthScal_320(200), 15)];
        self.labelTitle.textColor = titleColorLSZ;
        self.labelTitle.font = FONT_14;
        [self addSubview:self.labelTitle];
        
        self.imageViewHook = [[UIImageView alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.imageViewAudio.frame)+4, CGRectGetMaxY(self.labelTitle.frame)+8, 10, 10)];
        [self addSubview:self.imageViewHook];
        
        self.labelChapters = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.imageViewHook.frame)+2, CGRectGetMaxY(self.labelTitle.frame)+8, WidthScal_320(180), 12)];
        self.labelChapters.textColor = lightColor;
        self.labelChapters.font = FONT_12;
        [self addSubview:self.labelChapters];
        
        self.butShare = [[UIButton alloc]initWithFrame:CGRectMake(ScreenWidth-19-60,0,19+60, 60 )];
        [self.butShare setImage:[UIImage imageNamed:@"类别"] forState:UIControlStateNormal];
        [self addSubview:self.butShare];
        
     }
    return self;
}
- (void)clickOnThisSongToPlay:(BOOL)isSystemRed
{
    if (isSystemRed == YES) {
        self.labelTitle.textColor = redUIColor;
        self.labelChapters.textColor = redUIColor;
    }else{
        self.labelTitle.textColor = titleColorLSZ;
        self.labelChapters.textColor = lightColor;
    }
}

@end
